not-found.tsx 731 B

123456789101112131415161718192021222324
  1. /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
  2. /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
  3. import type { Metadata } from 'next'
  4. import config from '@payload-config'
  5. import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views'
  6. import { importMap } from '../importMap'
  7. type Args = {
  8. params: Promise<{
  9. segments: string[]
  10. }>
  11. searchParams: Promise<{
  12. [key: string]: string | string[]
  13. }>
  14. }
  15. export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
  16. generatePageMetadata({ config, params, searchParams })
  17. const NotFound = ({ params, searchParams }: Args) =>
  18. NotFoundPage({ config, params, searchParams, importMap })
  19. export default NotFound